﻿using System;
using System.ComponentModel.DataAnnotations;
using Furion.DatabaseAccessor;

namespace Cool.Core.Entities.System
{
    public class SysRole : DEntityBase
    {
        public SysRole()
        {
            CreatedTime = DateTimeOffset.Now.LocalDateTime;
        }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required, MaxLength(32)]
        public string RoleName { get; set; }

        /// <summary>
        /// 角色权限字符串
        /// </summary>
        public string RoleKey { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）
        /// </summary>
        public char DataScope { get; set; }

        /// <summary>
        /// 角色状态
        /// </summary>
        public char Status { get; set; }

    }
}
